package com.javapatterns.decorator.print.copy;

public class CopyClient {

	public static void main(String[] args) {
		CopyOrder order = new CopySaleOrder();

		OrderItem item = new OrderItem();
		item.setName("FireWheel Tire");
		item.setUnits(2);
		item.setUnitPrice(18.8);
		order.addItems(item);

		item = new OrderItem();
		item.setName("Front Fender");
		item.setUnits(1);
		item.setUnitPrice(36.0);
		order.addItems(item);

		order.setCustomer("test_600");
		order.setSaleDate("2012-06-18");

		// order.print();

		CopyOrder footOrder = new CopyFooterDecorator(order);

		CopyOrder headerOrder = new CopyHeaderDecorator(footOrder);

		headerOrder.print();

	}

}
